#pragma once
#include <SFML/Graphics/Text.hpp>
#include <nice2d/serializer.h>

class TextOption : public Serializer
{
public:
    static void apply(sf::Text& text,const TextOption& option);

    PTree serialize() override;
    void deserialize(const PTree &node) override;

    std::string fontFile = "./../data/font/arial.ttf";
    int32_t characterSize = 18;
    sf::Text::Style style = sf::Text::Style::Regular;
};